import 'package:flutter/services.dart';
import 'package:totaldemo/utils/screen_unit.dart';
import 'package:flutter/material.dart';

///desc:初始化配置
///desc:前提，加入到程序入口地方
class InitConfig {
  static void instance() {
    print('初始化数据');

    /// 1.配置强制竖屏
    // SystemChrome.setPreferredOrientations(<DeviceOrientation>[
    //   DeviceOrientation.portraitUp,
    //   DeviceOrientation.portraitDown
    // ]);
    ///3.屏幕适配初始化
    // GsScreenUtil.init();
  }
}

class MenuBean {
  String image;
  String title;
  Widget page;
  Function onclick;
  MenuBean({this.image, this.title, this.page, this.onclick});
}
